package com.dhcc.DRGsHosp.web.controller;

import org.openkoala.koala.commons.InvokeResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dhcc.DRGsHosp.facade.MrQualityAnalysisFacade;
import com.dhcc.DRGsHosp.facade.dto.IndexCalDTO;
/**
 * 
 * @title		:MrQualitiAnalysisController.java
 * @description	:病案首页质量分析
 * @author		:mazhaoyan
 * @date		:2017年4月21日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014
 */
@Controller("drgsHospWebControllerMzy170421")
@RequestMapping("/mrQualityAnalysis")
public class MrQualityAnalysisController {
		
	@Autowired
	private MrQualityAnalysisFacade mrQualityAnalysisFacade;
	
	/**
	 * 
	 *  getGroupCaseQuality.  
	 *  @Description：获取已分组的病例质量数据
	 *  @Author mazhaoyan
	 *  @param dto
	 *  @return 
	 *  @Date:2017年7月20日下午8:51:00
	 */
	@ResponseBody
	@RequestMapping("/getGroupCaseQuality")
	public InvokeResult getGroupCaseQuality(IndexCalDTO dto){
		return InvokeResult.success(mrQualityAnalysisFacade.getGroupCaseQuality(dto));
	}
	/**
	 * 
	 *  getGroupDetail.  
	 *  @Description：病组的详细数据
	 *  @Author mazhaoyan
	 *  @param dateFrom
	 *  @param dateTo
	 *  @param drgCode
	 *  @return 
	 *  @Date:2017年7月21日下午2:45:31
	 */
	@ResponseBody
	@RequestMapping("/getGroupDetail")
	public InvokeResult getGroupDetail(IndexCalDTO dto){
		return InvokeResult.success(mrQualityAnalysisFacade.getGroupDetail(dto));
	}
	
}
